package com.yangbwe.Springtest.autowired;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component("mySchool")
public class School {
    @Value("大学")
    private String name;
    @Value("位置")
    public  String place;

}
